import sys

from oslo_config import cfg
from oslo_db import options as db_options

try:
    from neutron.common import config as common_config
    try:
        from neutron.conf.agent import common as config
    except Exception:
        from neutron.agent.common import config
except ImportError as Error:
    pass

# cfg.CONF.cvs_file
tool_opts = [
    cfg.StrOpt("csv-file",
               short="csv",
               default=None,
               help=("Provide an input CSV file"))
]

def load_config():
    cfg.CONF.register_cli_opts(tool_opts)

    db_options.set_defaults(cfg.CONF)
    config.register_agent_state_opts_helper(cfg.CONF)
    config.register_root_helper(cfg.CONF)

    args = sys.argv[1:]
    common_config.init(args)
